export default {
    data () {
        return {
            bsr: null,
        }
    },
    created () {
        this.bsr = this.$route.params ? this.$route.params.bsr : {}
        // this.bsr = localStorage.bsr ? JSON.parse(localStorage.bsr) : {}
    },
    mounted () {
        this.$nextTick(() => {
            let dom = document.getElementById('downloadmask')
            if (dom) {
                document.body.removeChild(dom)
            }
        })
    },
    methods: {
        getFileSuffix (fileName) {
            let index = fileName.lastIndexOf('.')
            let oldSuffix = fileName.substr(index + 1).toLowerCase()
            console.log('oldSuffix',oldSuffix);
            let typeObj = this.$CONST.global.fileType
            let suffix = typeObj[oldSuffix]
            return suffix
        }
    },
}